package cn.edu.csust.coursecard.service;

import cn.edu.csust.coursecard.dao.dto.TaskRequest;
import cn.edu.csust.coursecard.dao.dto.TaskResult;
import com.fasterxml.jackson.core.JsonProcessingException;

public interface IClusterTaskService {
    int getConnCount();

    String newTask(TaskRequest request) throws Throwable;

    TaskResult getResult(String taskId) throws JsonProcessingException;
}
